<% layout('/layouts/list.html', {title: '订单管理'}){ %>
<#grid:grid id="roleGrid" url="${adminPath}/product/order/ajaxList">
    <#grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
    <#grid:button  groupname="opt" function="delete" />
    <#grid:column label="订单号" name="id" width="200"/>
    <#grid:column label="订单名称"  name="name"  query="true" condition="like" />
    <#grid:column label="创建时间"  name="createDate"/>
    <#grid:column label="购买人"  name="user.realname"/>
    <#grid:column label="付款总金额"  name="totalAmount"  />
    <#grid:column label="订单状态"  name="orderStatus" dict="productOrderStatus"  formatterClass="1:label label-primary;2:label label-success;3:label label-success;4:label label-danger"/>
    <#grid:toolbar   function="delete"/>
    <#grid:toolbar  function="search"/>
    <#grid:toolbar  function="reset"/>
</#grid:grid>
<% } %>